﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class ProductImageBusiness
    {
        public bool Add(ProductImage productImage)
        {
            return new ProductImageDAO().Add(productImage);
        }

        public bool Delete(int Id)
        {
            return new ProductImageDAO().Delete(Id);
        }

        public bool Update(ProductImage productImage)
        {
            return new ProductImageDAO().Update(productImage);
        }

        public ProductImage GetEntity(int Id)
        {
            return new ProductImageDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new ProductImageDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public ProductImage GetEntity(int productId, int type)
        {
            return new ProductImageDAO().GetEntity(productId,type);
        }
    }
}
